package com.qdlc.p2p.biz.service.user;

import javax.servlet.http.HttpServletRequest;

/**
 * 密码重置步骤模型
 * @author linya
 */
public class ResetPasswordStepModel {

	public static final int RESET_PASSWORD_STRATEGY_TYPE_EMAIL = 1;	// 邮箱找回
	
	public static final int RESET_PASSWORD_STRATEGY_TYPE_PHONE = 2;	// 手机找回
	
	//步骤状态，找回密码共3步
	public static final int STEP_1 = 1;
	public static final int STEP_2 = 2;
	public static final int STEP_3 = 3;
	
	HttpServletRequest request;
	
	//找回密码步骤
	int step;
	
	//找回方式（手机找回、邮箱找回）
	int strategyType;
	
	//找回密码关键词(手机或邮箱)
	String keyWorlds;
	
	//第一步参数:图形验证码
	String validCode;
	
	//第二步参数:短信/邮箱验证码
	String code;
	
	//第三步参数:新密码、确认新密码
	String newPassword;
	String confirmNewPassword;
	
	public ResetPasswordStepModel(int step, String keyWorlds, int strategyType) {
		this.step = step;
		this.keyWorlds = keyWorlds;
		this.strategyType = strategyType;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public int getStep() {
		return step;
	}

	public String getKeyWorlds() {
		return keyWorlds;
	}

	public int getStrategyType() {
		return strategyType;
	}

	public String getValidCode() {
		return validCode;
	}

	public void setValidCode(String validCode) {
		this.validCode = validCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getConfirmNewPassword() {
		return confirmNewPassword;
	}

	public void setConfirmNewPassword(String confirmNewPassword) {
		this.confirmNewPassword = confirmNewPassword;
	}
	
}
